<template>
  <el-button class="Body_Register_button" type="primary" @click="handleClick">
    {{ buttonText }}
  </el-button>
</template>

<script setup lang="ts">
import { defineProps } from 'vue';
import { useRouter } from 'vue-router';

const props = defineProps<{
  buttonText: string;
}>();

const router = useRouter();

const handleClick = () => {
  router.push({ name: 'Register' });
};
</script>

<style scoped>
.Body_Register_button {
  background-color: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  font-weight: bold;
  font-size: 36px !important;
  min-width: 300px !important;
  height: 60px !important;
  padding: 0 20px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px !important;
  transition: all 0.3s ease;
}

.Body_Register_button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255);
}
</style>
